﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using IHISCETeim.BLL;
using IHISCETeim.Library;
using IHISCETeim.Model;

namespace IHISCETeim.Web.MachineSys.UserModel
{
    public partial class UClaimDemageControlUpdateFinalDetail : PageBase
    {
        protected override Permission[] PowerKey
        {
            get
            {
                return new Permission[] { Permission.查看 };
            }
        }
        protected override string DWZRef
        {
            get { return "UClaimDemageControlList"; }
        }


        /// <summary>
        /// 需要修改的ID
        /// </summary>
        protected string ClaimsNumber
        {
            get
            {
                return GetRequestValue<string>("ClaimsNumber");
            }
        }

        private DataTable _SupplerDetailDT;
        protected DataTable SupplerDetailDT
        {
            get
            {
                if (_SupplerDetailDT == null)
                {
                    _SupplerDetailDT = UClaimDemageControlController.GetDetailByClaimsNumber(ClaimsNumber);
                    int oldRowCount = _SupplerDetailDT.Rows.Count;
                    int newRowCount = 10 - oldRowCount;
                    for (int i = 0; i < newRowCount; i++)
                    {
                        DataRow dr = _SupplerDetailDT.NewRow();
                        _SupplerDetailDT.Rows.Add(dr);
                    }
                }
                return _SupplerDetailDT;
            }
        }
        



        protected void Page_Load(object sender, EventArgs e)
        {
            //this.rpFinailDetail.DataSource = SupplerDetailDT;
          //  this.rpFinailDetail.DataBind();
            
           // this.rpFinailDetail3.DataSource = SupplerDetailDT;
            //this.rpFinailDetail3.DataBind();
            this.rpFinailDetail4.DataSource = SupplerDetailDT;
            this.rpFinailDetail4.DataBind();
        }
    }
}